package com.zlsy.thread.threadattribute;

/**
 * @author zhouliang
 * @date 2020/03/12
 * <p>
 * 线程的id是从1开始的，jvm运行起来之后我们创建的线程id早已经不是0了。
 **/
public class Id {

    /**
     *  private volatile int threadStatus = 0;
     *
     *
     *     private static synchronized long nextThreadID() {
     *         return ++threadSeqNumber;
     *     }
     * @param args
     */
    public static void main(String[] args) {
        Thread thread = new Thread();
        System.err.println("主线程的id：" + Thread.currentThread().getId());
        System.err.println("thread的id：" + thread.getId());
    }
}
